package com.crm.service.impl.returnMoney;

import com.crm.dao.mapper.customMapper.returnMoneyManagerCustomMapper.ReturnMoneyLogCustomMapper;
import com.crm.model.entity.returnMoney.ReturnMoneyLog;
import com.crm.model.vo.returnMoney.ReturnMoneyLogVO;
import com.crm.service.returnMoney.ReturnMoneyLogDbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: chaifuyou
 * @date 2021/3/29 15:11
 */
@Service
public class ReturnMoneyLogDbDbServiceImpl implements ReturnMoneyLogDbService {

    @Autowired
    private ReturnMoneyLogCustomMapper returnMoneyLogCustomMapper;


    /**
     * 新增修改日志
     * @param returnMoneyLog
     */
    @Override
    public void addReturnMoneyLog(ReturnMoneyLog returnMoneyLog) {
        returnMoneyLogCustomMapper.insertReturnMoneyLog(returnMoneyLog);
    }

    /**
     * 根据订单id修改回款日志
     * @param orderId
     * @return
     */
    @Override
    public List<ReturnMoneyLogVO> getReturnMoneyLogList(String orderId) {
        return returnMoneyLogCustomMapper.getReturnMoneyLogList(orderId);
    }

}
